import 'package:formz/formz.dart';

enum CaseContentValidationError { empty }

class CaseContent extends FormzInput<String, CaseContentValidationError> {
  const CaseContent.pure() : super.pure('');
  const CaseContent.dirty([String value = '']) : super.dirty(value);

  @override
  CaseContentValidationError validator(String value) {
    return value?.isNotEmpty == true ? null : CaseContentValidationError.empty;
  }
}
